<% content_for :head do %>
  <%= javascript_include_tag "/assets/ckeditor/ckeditor.js" %>
<% end %>

<%= form_for [:admin, @content], :validate => true do |f| %>

  <%= render "shared/error_messages", :target => @content %>

  <table>
    <tbody>
      <tr>
        <th><%= f.label :presentation %></th>
        <td><%= f.text_field :presentation, :size => 30, :maxlength => 32 %></td>
      </tr>
      <tr>
        <th><%= f.label :name %></th>
        <td><%= f.text_field :name, :size => 30, :maxlength => 32 %></td>
      </tr>
      <tr>
        <th><%= f.label :group %></th>
        <td><%= f.select :group, options_for_select([["Vyberte kategorii", nil], [t("enumerations.content.group.system"), "system"], [t("enumerations.content.group.shop"), "shop"]], f.object.group.to_s) %></td>
      </tr>
      <tr>
        <th><%= f.label :title %></th>
        <td><%= f.text_field :title, :size => 70, :maxlength => 200 %></td>
      </tr>
      <tr>
        <th><%= f.label :html %></th>
        <td><%= f.cktext_area :html, :width => "750px;", :height => "600px;", :toolbar => "Mini" %></td>
      </tr>
      <tr>
        <td colspan="2"><%= f.submit %></td>
      </tr>
    </tbody>
  </table>
<% end %>